package io.renren.modules.statistic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.statistic.dao.StatisticDao;
import io.renren.modules.statistic.entity.StatisticEntity;
import io.renren.modules.statistic.service.StatisticService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("statisticService")
public class StatisticServiceImpl extends ServiceImpl<StatisticDao, StatisticEntity> implements StatisticService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StatisticEntity> page = this.page(
                new Query<StatisticEntity>().getPage(params),
                new QueryWrapper<StatisticEntity>()
        );

        return new PageUtils(page);
    }

}